<%--
  Created by IntelliJ IDEA.
  User: fzhui
  Date: 2020/12/8
  Time: 13:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登陆</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }
    </style>
</head>
<body>
<div style="margin: 0 auto;width: 1024px">
    <div><h1 style="text-align: center">登陆</h1></div>
    <form action="/login" method="post">
        <div class="row">
            <div class="col-lg-4"></div>
            <div class="col-lg-4">
                <%
                    if (request.getAttribute("message") != null) {
                %>
                <div class="alert alert-danger" role="alert">
                    <%= request.getAttribute("message") %>
                </div>
                <%
                    }
                %>
            </div>
            <div class="col-lg-4"></div>
        </div>
        <div class="row">
            <div class="col-lg-4"></div>
            <div class="col-lg-4">
                <div class="form-group">
                    <label>账号：
                    </label>
                    <input name="username" type="text" class="form-control" id="username" placeholder="请输入管理员账号">
                </div>
                <div class="form-group">
                    <label>密码：</label>
                    <input name="password" type="password" class="form-control" id="password" placeholder="请输入管理员密码">
                </div>
            </div>
            <div class="col-lg-4"></div>
        </div>
        <div class="row">
            <div class="col-lg-4"></div>
            <div class="col-lg-4">
                <div class="form-group">
                    <input type="submit" value="登陆" class="btn btn-success" style="width: 100%">
                </div>
            </div>
            <div class="col-lg-4"></div>
        </div>
    </form>
</div>
</body>
</html>
